package com.telecom.weixi.parse;

import android.os.Parcel;
import android.os.Parcelable;

public class TermInfo implements Parcelable{
	String accNbr;
	String regNum;
	String terNum;
	
	public TermInfo(){
		
	}
	public TermInfo(Parcel source){
		accNbr = source.readString();
		regNum = source.readString();
		terNum = source.readString();
	}
	
	public static Parcelable.Creator<TermInfo> CREATOR = new Creator<TermInfo>() {
		
		@Override
		public TermInfo[] newArray(int size) {
			return new TermInfo[size];
		}
		
		@Override
		public TermInfo createFromParcel(Parcel source) {
			return new TermInfo(source);
		}
	};
	
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeString(accNbr);
		dest.writeString(regNum);
		dest.writeString(terNum);
	}
	
	public String toString(){
		return accNbr + "-" + regNum + "-" + terNum;
	}
	
	public String getAccNbr() {
		return accNbr;
	}
	public void setAccNbr(String accNbr) {
		this.accNbr = accNbr;
	}
	public String getRegNum() {
		return regNum;
	}
	public void setRegNum(String regNum) {
		this.regNum = regNum;
	}
	public String getTerNum() {
		return terNum;
	}
	public void setTerNum(String terNum) {
		this.terNum = terNum;
	}
	
	
}
